package com.fui.service.impl;

import com.fui.dao.RoleDao;
import com.fui.domain.SmbmsRole;
import com.fui.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;

    /**
     * 查询所有角色
     *
     * @return
     */
    @Override
    public List<SmbmsRole> queryRole() {
        List<SmbmsRole> smbmsRoles = roleDao.queryRole();
        return smbmsRoles;
    }
}
